Optimal. Leaf size=162 \[ -\frac{b^2 \text{PolyLog}\left (2,1-\frac{2}{1-c x}\right )}{5 c^5}+\frac{b x^2 \left (a+b \tanh ^{-1}(c x)\right )}{5 c^3}+\frac{\left (a+b \tanh ^{-1}(c x)\right )^2}{5 c^5}-\frac{2 b \log \left (\frac{2}{1-c x}\right ) \left (a+b \tanh ^{-1}(c x)\right )}{5 c^5}+\frac{1}{5} x^5 \left (a+b \tanh ^{-1}(c x)\right )^2+\frac{b x^4 \left (a+b \tanh ^{-1}(c x)\right )}{10 c}+\frac{b^2 x^3}{30 c^2}+\frac{3 b^2 x}{10 c^4}-\frac{3 b^2 \tanh ^{-1}(c x)}{10 c^5} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.302228, antiderivative size = 162, normalized size of antiderivative = 1., number of steps used = 14, number of rules used = 9, integrand size = 14, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.643, Rules used = {5916, 5980, 302, 206, 321, 5984, 5918, 2402, 2315} \[ -\frac{b^2 \text{PolyLog}\left (2,1-\frac{2}{1-c x}\right )}{5 c^5}+\frac{b x^2 \left (a+b \tanh ^{-1}(c x)\right )}{5 c^3}+\frac{\left (a+b \tanh ^{-1}(c x)\right )^2}{5 c^5}-\frac{2 b \log \left (\frac{2}{1-c x}\right ) \left (a+b \tanh ^{-1}(c x)\right )}{5 c^5}+\frac{1}{5} x^5 \left (a+b \tanh ^{-1}(c x)\right )^2+\frac{b x^4 \left (a+b \tanh ^{-1}(c x)\right )}{10 c}+\frac{b^2 x^3}{30 c^2}+\frac{3 b^2 x}{10 c^4}-\frac{3 b^2 \tanh ^{-1}(c x)}{10 c^5} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 5916
Rule 5980
Rule 302
Rule 206
Rule 321
Rule 5984
Rule 5918
Rule 2402
Rule 2315
Rubi steps
\begin{align*} \int x^4 \left (a+b \tanh ^{-1}(c x)\right )^2 \, dx &=\frac{1}{5} x^5 \left (a+b \tanh ^{-1}(c x)\right )^2-\frac{1}{5} (2 b c) \int \frac{x^5 \left (a+b \tanh ^{-1}(c x)\right )}{1-c^2 x^2} \, dx\\ &=\frac{1}{5} x^5 \left (a+b \tanh ^{-1}(c x)\right )^2+\frac{(2 b) \int x^3 \left (a+b \tanh ^{-1}(c x)\right ) \, dx}{5 c}-\frac{(2 b) \int \frac{x^3 \left (a+b \tanh ^{-1}(c x)\right )}{1-c^2 x^2} \, dx}{5 c}\\ &=\frac{b x^4 \left (a+b \tanh ^{-1}(c x)\right )}{10 c}+\frac{1}{5} x^5 \left (a+b \tanh ^{-1}(c x)\right )^2-\frac{1}{10} b^2 \int \frac{x^4}{1-c^2 x^2} \, dx+\frac{(2 b) \int x \left (a+b \tanh ^{-1}(c x)\right ) \, dx}{5 c^3}-\frac{(2 b) \int \frac{x \left (a+b \tanh ^{-1}(c x)\right )}{1-c^2 x^2} \, dx}{5 c^3}\\ &=\frac{b x^2 \left (a+b \tanh ^{-1}(c x)\right )}{5 c^3}+\frac{b x^4 \left (a+b \tanh ^{-1}(c x)\right )}{10 c}+\frac{\left (a+b \tanh ^{-1}(c x)\right )^2}{5 c^5}+\frac{1}{5} x^5 \left (a+b \tanh ^{-1}(c x)\right )^2-\frac{1}{10} b^2 \int \left (-\frac{1}{c^4}-\frac{x^2}{c^2}+\frac{1}{c^4 \left (1-c^2 x^2\right )}\right ) \, dx-\frac{(2 b) \int \frac{a+b \tanh ^{-1}(c x)}{1-c x} \, dx}{5 c^4}-\frac{b^2 \int \frac{x^2}{1-c^2 x^2} \, dx}{5 c^2}\\ &=\frac{3 b^2 x}{10 c^4}+\frac{b^2 x^3}{30 c^2}+\frac{b x^2 \left (a+b \tanh ^{-1}(c x)\right )}{5 c^3}+\frac{b x^4 \left (a+b \tanh ^{-1}(c x)\right )}{10 c}+\frac{\left (a+b \tanh ^{-1}(c x)\right )^2}{5 c^5}+\frac{1}{5} x^5 \left (a+b \tanh ^{-1}(c x)\right )^2-\frac{2 b \left (a+b \tanh ^{-1}(c x)\right ) \log \left (\frac{2}{1-c x}\right )}{5 c^5}-\frac{b^2 \int \frac{1}{1-c^2 x^2} \, dx}{10 c^4}-\frac{b^2 \int \frac{1}{1-c^2 x^2} \, dx}{5 c^4}+\frac{\left (2 b^2\right ) \int \frac{\log \left (\frac{2}{1-c x}\right )}{1-c^2 x^2} \, dx}{5 c^4}\\ &=\frac{3 b^2 x}{10 c^4}+\frac{b^2 x^3}{30 c^2}-\frac{3 b^2 \tanh ^{-1}(c x)}{10 c^5}+\frac{b x^2 \left (a+b \tanh ^{-1}(c x)\right )}{5 c^3}+\frac{b x^4 \left (a+b \tanh ^{-1}(c x)\right )}{10 c}+\frac{\left (a+b \tanh ^{-1}(c x)\right )^2}{5 c^5}+\frac{1}{5} x^5 \left (a+b \tanh ^{-1}(c x)\right )^2-\frac{2 b \left (a+b \tanh ^{-1}(c x)\right ) \log \left (\frac{2}{1-c x}\right )}{5 c^5}-\frac{\left (2 b^2\right ) \operatorname{Subst}\left (\int \frac{\log (2 x)}{1-2 x} \, dx,x,\frac{1}{1-c x}\right )}{5 c^5}\\ &=\frac{3 b^2 x}{10 c^4}+\frac{b^2 x^3}{30 c^2}-\frac{3 b^2 \tanh ^{-1}(c x)}{10 c^5}+\frac{b x^2 \left (a+b \tanh ^{-1}(c x)\right )}{5 c^3}+\frac{b x^4 \left (a+b \tanh ^{-1}(c x)\right )}{10 c}+\frac{\left (a+b \tanh ^{-1}(c x)\right )^2}{5 c^5}+\frac{1}{5} x^5 \left (a+b \tanh ^{-1}(c x)\right )^2-\frac{2 b \left (a+b \tanh ^{-1}(c x)\right ) \log \left (\frac{2}{1-c x}\right )}{5 c^5}-\frac{b^2 \text{Li}_2\left (1-\frac{2}{1-c x}\right )}{5 c^5}\\ \end{align*}
Mathematica [A] time = 0.451515, size = 161, normalized size = 0.99 \[ \frac{6 b^2 \text{PolyLog}\left (2,-e^{-2 \tanh ^{-1}(c x)}\right )+6 a^2 c^5 x^5+3 a b c^4 x^4+6 a b c^2 x^2+6 a b \log \left (c^2 x^2-1\right )+3 b \tanh ^{-1}(c x) \left (4 a c^5 x^5+b \left (c^4 x^4+2 c^2 x^2-3\right )-4 b \log \left (e^{-2 \tanh ^{-1}(c x)}+1\right )\right )-9 a b+b^2 c^3 x^3+6 b^2 \left (c^5 x^5-1\right ) \tanh ^{-1}(c x)^2+9 b^2 c x}{30 c^5} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.016, size = 306, normalized size = 1.9 \begin{align*}{\frac{{x}^{5}{a}^{2}}{5}}+{\frac{{x}^{5}{b}^{2} \left ({\it Artanh} \left ( cx \right ) \right ) ^{2}}{5}}+{\frac{{b}^{2}{\it Artanh} \left ( cx \right ){x}^{4}}{10\,c}}+{\frac{{b}^{2}{\it Artanh} \left ( cx \right ){x}^{2}}{5\,{c}^{3}}}+{\frac{{b}^{2}{\it Artanh} \left ( cx \right ) \ln \left ( cx-1 \right ) }{5\,{c}^{5}}}+{\frac{{b}^{2}{\it Artanh} \left ( cx \right ) \ln \left ( cx+1 \right ) }{5\,{c}^{5}}}+{\frac{{b}^{2}{x}^{3}}{30\,{c}^{2}}}+{\frac{3\,{b}^{2}x}{10\,{c}^{4}}}+{\frac{3\,{b}^{2}\ln \left ( cx-1 \right ) }{20\,{c}^{5}}}-{\frac{3\,{b}^{2}\ln \left ( cx+1 \right ) }{20\,{c}^{5}}}+{\frac{{b}^{2} \left ( \ln \left ( cx-1 \right ) \right ) ^{2}}{20\,{c}^{5}}}-{\frac{{b}^{2}}{5\,{c}^{5}}{\it dilog} \left ({\frac{1}{2}}+{\frac{cx}{2}} \right ) }-{\frac{{b}^{2}\ln \left ( cx-1 \right ) }{10\,{c}^{5}}\ln \left ({\frac{1}{2}}+{\frac{cx}{2}} \right ) }+{\frac{{b}^{2}\ln \left ( cx+1 \right ) }{10\,{c}^{5}}\ln \left ( -{\frac{cx}{2}}+{\frac{1}{2}} \right ) }-{\frac{{b}^{2}}{10\,{c}^{5}}\ln \left ( -{\frac{cx}{2}}+{\frac{1}{2}} \right ) \ln \left ({\frac{1}{2}}+{\frac{cx}{2}} \right ) }-{\frac{{b}^{2} \left ( \ln \left ( cx+1 \right ) \right ) ^{2}}{20\,{c}^{5}}}+{\frac{2\,{x}^{5}ab{\it Artanh} \left ( cx \right ) }{5}}+{\frac{{x}^{4}ab}{10\,c}}+{\frac{ab{x}^{2}}{5\,{c}^{3}}}+{\frac{ab\ln \left ( cx-1 \right ) }{5\,{c}^{5}}}+{\frac{ab\ln \left ( cx+1 \right ) }{5\,{c}^{5}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (b^{2} x^{4} \operatorname{artanh}\left (c x\right )^{2} + 2 \, a b x^{4} \operatorname{artanh}\left (c x\right ) + a^{2} x^{4}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int x^{4} \left (a + b \operatorname{atanh}{\left (c x \right )}\right )^{2}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (b \operatorname{artanh}\left (c x\right ) + a\right )}^{2} x^{4}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]